package cn.bs.busuo.front.account.dao.persist.mapper;

import cn.bs.busuo.front.account.pojo.entity.User;
import cn.bs.busuo.front.account.pojo.vo.UserStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {

    int ifExitsByUsername(String username);
    Long selectIDByUsername(String username);
    UserStandardVO getStandardById(Long id);
    List<UserStandardVO> list();

    int ifUserExits(Long userId);

    String selectUserPasswordById(Long id);
}
